package com.aniu.cameramanager;

import android.app.admin.DeviceAdminReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

/**
 *
 */
public class MyDeviceAdminReceiver extends DeviceAdminReceiver {
    private static final String TAG = MyDeviceAdminReceiver.class.getSimpleName();

    @Override
    public void onEnabled(Context context, Intent intent) {
        Log.i(TAG, "------------onEnabled------------");
    }

    @Override
    public CharSequence onDisableRequested(Context context, Intent intent) {
        Log.i(TAG, "------------onDisableRequested------------");
        return context.getString(R.string.inactivate_alert);
    }

    @Override
    public void onDisabled(Context context, Intent intent) {
        Log.i(TAG, "------------onDisabled------------");
    }
}
